<div id="header">
    <div class="left middle" id="logo-title" style="padding: 5px">
        <div style="float: left; width: 30%">
            <a id="logo" rel="home" title="MAPLEGOLDS" href="/"  style="text-decoration: none; ">
                <img alt="MAPLEGOLDS" src="/images/logo.png" style="border: none">
            </a>
            <br>
            <?php echo __('Last Login') ?> :<strong><?php echo $lastLogin ?></strong>
        </div>
        <div style="float: right; width: 70%">
            <table cellpadding="1" cellspacing="2" border="0">
                <tr>
                    <td width="30%"><?php echo __('Member Id') ?>:</td>
                    <td width="20%"><strong><?php echo $sf_user->getAttribute(Globals::SESSION_USERNAME); ?></strong></td>
                    <td width="30%"><?php echo __('e-Cash Wallet') ?> (USD):</td>
                    <td width="20%"><strong><?php echo number_format($ecash,2) ?></strong></td>
                </tr>
                <tr>
                    <td><?php echo __('Name') ?>:</td>
                    <td><strong><?php echo $componentDistributor->getNickname(); ?></strong></td>
                    <td><?php echo __('e-Point Wallet') ?> (USD):</td>
                    <td><strong><?php echo number_format($epoint,2) ?></strong></td>
                </tr>
                <tr>
                    <td><?php echo __('Package Rank') ?>:</td>
                    <td><strong><?php echo __($componentDistributor->getRankCode()); ?></strong></td>
                    <td><?php echo __('Unrealized Profit/Loss($)', null, 'goldTrading') ?>:</td>
                    <td><strong><?php echo number_format($unrealizedProfitGold,2) ?></strong></td>
                </tr>
                <tr>
                    <td><?php echo __('No. of CPS') ?>:</td>
                    <td><strong><?php echo number_format($cps,2) ?></strong></td>
                    <td><?php echo __('Maintenance Balance') ?> (USD):</td>
                    <td><strong>
                        <?php
                            // MAINTENANCE BALANCE (USD) = Once reached USD 500, let them reinvest back
                            // (Once reinvested, if the No. of CPS reached 1000/2500/5000/10k/15k CPS, the direct sponsor/pairing bonus % will different too)
                            if ($maintenance >= Globals::REINVEST_AMOUNT) {
                                echo "<a href='".url_for("/gold/reinvestCps")."' title='Reinvest CPS' style='color:red'>".number_format($maintenance,2)."</a>";
                            } else {
                                echo number_format($maintenance,2);
                            }
                        ?>
                        </strong>
                    </td>
                </tr>
                <tr>
                    <td><?php echo __('Gold Dividend (USD)') ?>:</td>
                    <td><strong>
                        <?php
                            if ($goldDividend > 0) {
                                // ADD “Gold Dividend (USD)”: (No. of CPS) x Current Gold Price (USD/g, round down) x 50%
                                // (Click convert gold dividend into e-cash, then gold dividend will be transferred into e-cash wallet)
                                echo "<a href='".url_for("/gold/convertDividendToEcash")."' title='Reinvest CPS' style='color:red'>".number_format($goldDividend,2)."</a>";
                            } else {
                                echo number_format($goldDividend,2);
                            }
                        ?></strong></td>
                    <td><?php echo __('This Month Sales') ?>:</td>
                    <td><strong><?php echo number_format($monthlySales,2) ?></strong></td>
                </tr>
            </table>
        </div>
    </div>
</div>